$on ( type in module ng )

Description

Listens on events of a given type. See $emit for discussion of event life cycle.

The event listener function format is: function(event, args...) . The event object passed into the listener has the following attributes:

Usage

Scope#$on(name, listener);

Parameters

Returns

{function()}

Returns a deregistration function for this listener.